cmake_minimum_required(VERSION 3.16)
project(test_pass_fail_skip)

add_executable(main main.cpp)

enable_testing()
#add_test(NAME mytest COMMAND main)
#add_test(NAME mytest COMMAND echo -200)
#add_test(NAME mytest COMMAND echo 200)
#add_test(NAME mytest COMMAND echo "skip")
add_test(NAME mytest COMMAND echo "not test")

#set_property(TEST mytest PROPERTY PASS_REGULAR_EXPRESSION "-[1-9][0-9]*")
#set_property(TEST mytest PROPERTY PASS_REGULAR_EXPRESSION "[1-9][0-9]*")
#set_property(TEST mytest PROPERTY FAIL_REGULAR_EXPRESSION "[1-9][0-9]*")
#set_property(TEST mytest PROPERTY FAIL_REGULAR_EXPRESSION "-[1-9][0-9]*")
set_property(TEST mytest PROPERTY SKIP_REGULAR_EXPRESSION "skip")
